﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace YArchitech.Plumbing
{
	public partial class FormFamilyUpdate : System.Windows.Forms.Form
	{
		public FormFamilyUpdate()
		{
			this.InitializeComponent();
			new YJKProcessTools().ShowInTaskbarChange(this);
			base.CenterToScreen();
		}

		private void button1_Click(object sender, EventArgs e)
		{
			if (this.checkBox1.Checked)
			{
				this.istrue = true;
			}
			else if (!this.checkBox1.Checked)
			{
				this.istrue = false;
			}
			base.DialogResult = DialogResult.Yes;
			base.Close();
		}

		private void button2_Click(object sender, EventArgs e)
		{
			if (this.checkBox1.Checked)
			{
				this.istrue = true;
			}
			else if (!this.checkBox1.Checked)
			{
				this.istrue = false;
			}
			base.DialogResult = DialogResult.No;
			base.Close();
		}

		private void checkBox1_CheckedChanged(object sender, EventArgs e)
		{
			if (this.checkBox1.Checked)
			{
				this.istrue = true;
				return;
			}
			if (!this.checkBox1.Checked)
			{
				this.istrue = false;
			}
		}

		protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
		{
			int num = 256;
			int num2 = 260;
			if ((msg.Msg == num | msg.Msg == num2) && keyData == Keys.Escape)
			{
				base.Close();
			}
			return false;
		}

		public bool istrue;
	}
}
